package com.gage.service;

import java.util.List;

import com.baomidou.mybatisplus.service.IService;
import com.gage.commons.result.PageInfo;
import com.gage.model.BsDepartment;
import com.gage.model.BsDepartmentUser;

public interface IBsDepartmentService extends IService<BsDepartment>{
	String selectDepartmentTree(Integer grade,Integer parentid);
	PageInfo selectDataGrid(PageInfo pageInfo);
	List<BsDepartment> selectDepartmentList(Integer grade,Integer parentid);
	BsDepartment selectDepartmentById(Integer id);
	 int insertDepartmentUser(BsDepartmentUser bsDepartmentUser);
	 int deleteByDepartmentIdAndUid(Long departmentId,Long userId);
	 PageInfo getDepartmentUserByDepartmentId(PageInfo pageInfo);
	 PageInfo selectAssignUserPage(PageInfo pageInfo);
	 int getAssignUserCount(Long departmentId);
}
